package com.string;



import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

public class ToRemoveDuplicate {
	public static void main(String[] args) {
		Integer[] i = {1,2,3,4,3,5,6,7,8,4,5,2,11,12,13,14,15,17,18,12,14,};
		List list = Arrays.asList(i);
		Set set = new TreeSet(list);
		System.out.println(set);
		System.out.println(list.get(0));
	}
}
